package com.hkd.friend.controller.exam;

import com.hkd.common.core.domain.TableDataInfo;
import com.hkd.friend.domain.exam.dto.ExamQueryDTO;
import com.hkd.friend.service.exam.IExamService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/exam")
@Tag(name = "C端竞赛管理")
public class ExamController {
    @Autowired
    private IExamService examService;

    /**
     * 竞赛列表
     * @param examQueryDto 接收到前段的参数
     * @return 返回竞赛列表
     */
    @GetMapping("/semiLogin/list")
    public TableDataInfo list(ExamQueryDTO examQueryDto){
        return examService.list(examQueryDto);
    }

    @GetMapping("/semiLogin/redis/list")
    public TableDataInfo redisList(ExamQueryDTO examQueryDto){
         return examService.redisList(examQueryDto);
    }



}
